package com.nkym.wypan.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.nkym.wypan.model.context.chat.CreateRoomContext;
import com.nkym.wypan.model.entity.chat.Room;
import com.nkym.wypan.model.req.chat.JoinRoomReq;
import com.nkym.wypan.model.req.chat.PageQueryRoomReq;
import com.nkym.wypan.model.resp.socket.PageQueryRoomVO;

/**
* @author 19637
* @description 针对表【wy_pan_room】的数据库操作Service
* @createDate 2023-11-10 14:27:25
*/
public interface RoomService extends IService<Room> {

    void createRoom(CreateRoomContext context);

    void joinRoom(Long userId, JoinRoomReq req);
     boolean checkRoomIsExists(Long roomId) ;

    PageQueryRoomVO pageGetRoom(Long userId, PageQueryRoomReq req);
}
